<? if ($c = stack('name')) {

	$d = component_data($c); 
	$s = component_settings($c);

	?><div id="cpn-<?=$c?>" class="cpn-image"><?

		if ($d['link']) { ?><a href="<?=$d['link']?>" title="<?=h($d['title'])?>" <?=$d['blank'] ? 'target="_blank"' : ''?> ><? }
		
		?><img src="<?=FP_UPLOAD_PATH."$s[path]/$d[image]"?>" alt="<?=h($d['title'])?>" title="<?=h($d['title'])?>" /><?
		
		if ($d['link']) { ?></a><? }
		
	?></div><?
	
	unstack();
}